package com.javaclimb.accounting.dao;

import com.javaclimb.accounting.po.Account;
import com.javaclimb.accounting.po.User;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * @description:
 * @author: XX
 * @create: 2022-12-28 18:43
 **/
@Repository
public interface AccountDao {
    /*根据当前用户的id查询个人电子账户*/
    Account findByUserAccId(long userAccId);

    /**
     * 查询电子账户余额模块，两个方法
     * @param userName
     * @return
     */
    //根据用户名查询用户
     User queryUser(String userName);
    //查询余额
     Account queryAccount(Long accId);

    //根据用户id,对余额进行修改
    void update(Long userAccId, BigDecimal accTemp);
}
